AVEVA OMI Software Developer Kit



ArchestrA.Client.RuntimeData Namespace > DataSubscription Class > ReadOnceAsync Method : ReadOnceAsync(DataReferenceSource[],CancellationToken) Method
The data reference source array
The cancellation token used to cancel the read operation
ReadOnceAsync(DataReferenceSource[],CancellationToken) Method
Read the runtime data once asynchronously with Cancellation token. Note: the default timeout of 30 seconds applied by the system.
Syntax
'Declaration
 
Public Overloads MustOverride Function ReadOnceAsync( _
   ByVal dataReferenceSources() As DataReferenceSource, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of VTQ())
'Usage
 
Dim instance As DataSubscription
Dim dataReferenceSources() As DataReferenceSource
Dim cancellationToken As CancellationToken
Dim value As Task(Of VTQ())
 
value = instance.ReadOnceAsync(dataReferenceSources, cancellationToken)

Parameters

dataReferenceSources
The data reference source array
cancellationToken
The cancellation token used to cancel the read operation

Return Value

The VTQ array of the references
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also